package com.own.business.resource.core.property;

import com.own.business.resource.core.em.ResourceUniqueEnum;
import com.own.business.resource.core.em.ResourceUploadMethodEnum;
import lombok.Data;

/**
 * ResourceSourceProperty
 *
 * @author chenxueli
 * @date 2023-07-07 14:31:14
 */
@Data
public class ResourceSourceProperty {

    /**
     * 配置的类型
     */
    private String className;

    /**
     * 类型枚举（优先级在className之后）
     */
    private ResourceUploadMethodEnum type;

    /**
     * 文件唯一策略
     */
    private ResourceUniqueEnum unique = ResourceUniqueEnum.UNIQUE;

    /**
     * 秘钥key
     */
    private String key;

    /**
     * 秘钥
     */
    private String secret;

    /**
     * 存放的包名
     */
    private String bucket;

    /**
     * 请求的点
     */
    private String endPoint;

    /**
     * 存放的位置
     */
    private String position;

    /**
     * 是否私有读
     */
    private Boolean privateRead = false;

}
